Systems and methods for remote detection of software through browser webinjects

ABSTRACT

Computer-implemented methods and systems are provided for the detection of software presence remotely through the web browser by detecting the presence of webinjects in a web browser that visits a detection webpage. The methods can include delivering a detection webpage to a web browser, in which the detection webpage has detection code configured to detect a presence of the webinject in the detection webpage; and inspecting, by the detection code, rendering of content of the detection webpage in the browser to detect webinject content in the detection webpage by the webinject, the webinject content including one or more Hypertext Markup Language (HTML) components. The method can further include, if webinject content is detected, generating a fingerprint for each of the one or more HTML components; transmitting the one or more fingerprints to an external server; and classifying, by the external server, the webinject based on the one or more fingerprints.

TECHNICAL FIELD

The following disclosure is directed to methods and systems for the detection of software remotely through a web browser and, more specifically, methods and systems for detection of software remotely through a web browser by detecting the presence of webinjects in a web browser.

BACKGROUND

Modern software often uses webinjects to change with a user's web browsing experience. Examples of such software include malware, adware, browser extensions, and anti-virus programs. Webinjects are pieces of foreign code, e.g., Hypertext Markup Language (HTML) or JavaScript elements, that can be locally injected into webpages visited by the user. These webinjects can be injected through several techniques, for example, through a browser extension application programming interface (API), browser process memory injection, or local network proxies. The webinjects can change the webpage to steal information (e.g., passwords, personal data, etc.), present additional content to the user (e.g., advertising), and/or improve the user's browsing experience (e.g., by blocking advertising, presenting useful information, improving functionality, etc.). Motives for inserting webinjects into webpages can range from stealing information to displaying advertising, or even improving the user's experience.

SUMMARY

Disclosed herein are systems and methods to detect webinjects, and their sources, in webpages. Some approaches for detecting software presence remotely include (i) scanning the Internet for systems that publicly expose services and (ii) using a sinkhole to isolate a domain and receive software connections as the software reaches the sinkhole, which, in some instances requires the subject domain to be expired or otherwise available. Another approach uses crawlers in a peer-to-peer (P2P) configuration, where the crawler joins the P2P network and receives connections from other peers. However, this approach is limited to P2P-enabled software. This method, if deployed through advertising networks or other partners that can provide large amounts of traffic, can detect a considerable number of software installations by detecting the presence of webinjects in the browser. The exemplary methods and systems described herein can be used alone or complement any one or more of the above methods to detect webinjects.

In a first aspect, a computer-implemented method is provided for the detection of webinjects. The method includes delivering a detection webpage to a web browser. The detection webpage has detection code configured to detect a presence of the webinject in the detection webpage. The method further includes inspecting, by the detection code, rendering of content of the detection webpage in the browser to detect webinject content inserted into the detection webpage by the webinject. The webinject content includes one or more Hypertext Markup Language (HTML) components. The method further includes, if webinject content is detected, generating, by the detection code, a fingerprint for each of the one or more HTML components; transmitting, by the detection code, the one or more fingerprints to an external server; and classifying, by the external server, the webinject based on the one or more fingerprints.

Embodiments of the method can include any one or more of the below features. The method can include transmitting to the external sever, by the detection code, one or more HTML components of the detected webinject content. The transmission can be on a portion of the executions of the detection code. The transmission can be on a small sample of the executions. For example, the transmission can be on 1% or less of the executions of the detection code. These HTML component(s) can be transmitted with their respective fingerprints. The method can include identifying the origin software of the HTML component(s) by (i) searching for the HTML component(s) in sandboxed executions of software and/or (ii) searching through privately- and/or publicly-available data sources. The sandboxed executions of software may be associated with, may be related to, or possibly be the origin software. The method can further include generating a database including (a) the fingerprint(s), (b) the name of the origin software, (c) one or more features of the detected webinject content, and/or (d) one or more capabilities (e.g., intercepting communication or changing form contents) of the detected webinject content. This database can be used to classify webinject(s) detected on remote systems.

Delivering the detection webpage having detection code can further include configuring the detection code such that at least one of a source domain, a path, or an HTML structure of the detection webpage is configured to trigger an injection of the webinject content by the webinject. The detection code can include JavaScript or Content Security Policy (CSP). The detection webpage can be inserted into an Hypertext Markup Language (HTML) inline frame. The method can further include generating a classification of the one or more webinjects. Classifying the webinject based on the one or more fingerprints can further include determining an originating software of the webinject based on the one or more fingerprints. Classifying the webinject based on the one or more fingerprints can further include mapping the one or more fingerprints to a feature set of the webinject. The detection webpage can be delivered by a traffic generating entity. Delivering a detection webpage to a web browser can further include embedding, by the traffic generating entity, the detection webpage into an external webpage. Delivering a detection webpage to a web browser can occur upon receiving an indication of a user interaction with the content of a webpage, wherein the webpage is separate from the detection webpage. The webinject content can include added or modified content by the webinject.

In a second aspect, a system is provided for detection of webinjects. The system includes one or more computer systems programmed to perform operations that include delivering a detection webpage to a web browser. The detection webpage has detection code configured to detect a presence of the webinject in the detection webpage. The operations further include inspecting, by the detection code, rendering of content of the detection webpage in the browser to detect webinject content inserted into the detection webpage by the webinject. The webinject content includes one or more Hypertext Markup Language (HTML) components. The operations further include, if webinject content is detected, generating, by the detection code, a fingerprint for each of the one or more HTML components; transmitting, by the detection code, the one or more fingerprints to an external server; and classifying, by the external server, the webinject based on the one or more fingerprints.

Embodiments of the system can include any one or more of the below features. The operations can include transmitting to the external sever, by the detection code, one or more HTML components of the detected webinject content. The transmission can be on a portion of the executions of the detection code. The transmission can be on a small sample of the executions. For example, the transmission can be on 1% or less of the executions of the detection code. These HTML component(s) can be transmitted with their respective fingerprints. The operations can include identifying the origin software of the HTML component(s) by (i) searching for the HTML component(s) in sandboxed executions of software and/or (ii) searching through privately- and/or publicly-available data sources. The sandboxed executions of software may be associated with, may be related to, or possibly be the origin software. The operations can further include generating a database of (a) the fingerprint(s), (b) the name of the origin software, (c) one or more features of the detected webinject content, and/or (d) one or more capabilities (e.g. intercepting communication or changing form contents) of the detected webinject content. This database can be used to classify webinject(s) detected on remote systems.

Delivering the detection webpage having detection code can further include configuring the detection code such that at least one of a source domain, a path, or an HTML structure of the detection webpage is configured to trigger an injection of the webinject content by the webinject. The detection code can include JavaScript or Content Security Policy (CSP). The detection webpage is inserted into an Hypertext Markup Language (HTML) inline frame. The system can further include generating a classification of the one or more webinjects. Classifying the webinject based on the one or more fingerprints can further include determining an originating software of the webinject based on the one or more fingerprints. Classifying the webinject based on the one or more fingerprints can further include mapping the one or more fingerprints to a feature set of the webinject. The detection webpage can be delivered by a traffic generating entity. Delivering a detection webpage to a web browser can further include embedding, by the traffic generating entity, the detection webpage into an external webpage. Delivering a detection webpage to a web browser can occur upon receiving an indication of a user interaction with the content of a webpage, wherein the webpage is separate from the detection webpage. The webinject content can include added or modified content by the webinject.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart of an exemplary embodiment of a computer implemented method for the remote detection of webinjects.

FIGS. 2A-2B are diagrams of exemplary embodiments of systems for the remote detection of webinjects.

FIG. 3 is a block diagram of an example computer system that can be used in implementing the systems and methods described herein.

DETAILED DESCRIPTION

Disclosed herein are exemplary embodiments of systems and methods for the remote detection of software, specifically by the detection of webinjects in a web browser. The detection and classification of webinjects can be particularly useful in researching how to better secure and protect computer systems, especially those connected to the Internet. In some instances, the automatic classification of webinjects enabled by the systems and methods described herein provides significant increases in processing efficiencies over conventional techniques. Remote detection can be achieved without the use of installed detection software on a system. For example, instead of installed detection software, software can be remotely detected on any web browser that visits an detection webpage. For the purposes of clarity and conciseness, the methods and systems of FIGS. 1-3 are described together herein below.

FIG. 1 is a flowchart of an exemplary embodiment of a computer implemented method 100 for the remote detection of webinjects. FIGS. 2A-2B are diagrams of exemplary embodiments of systems 200 and 201, respectively, for the remote detection of webinjects.

In step 102 of the method 100, one or more detection webpages 204 are delivered to one or more web browser. In some embodiments, the one or more detection webpages 204 can be distributed by a third party traffic generating entity 206 with access to a high volume of web traffic (e.g., an advertising network, a website with a large number of daily visitors, etc.) that enables the one or more detection webpages 204 to reach a large number of browsers 208 across the Internet. In some embodiments, the system 200 may receive an indication of a user interaction with the content of a webpage in a browser. For example, the one or more detection webpages 204 can be delivered to a web browser 208 after a user clicks an advertisement in a webpage. The advertisement in the webpage can link to the detection webpage(s) 204 and may be acquired for the purpose of generating traffic to the detection webpage(s) 204. For instance, the advertisement can be configured such that, once a user clicks on an advertisement in the webpage, the browser is redirected to the detection webpage. In some embodiments, the one or more detection webpages 204 are not delivered directly as the main page of the web browser 208. Instead, the one or more webpages 204 can be embedded by a traffic generating entity 206 into an external main webpage 209 (e.g., a third-party webpage that is not part of the detection system), as one or more HTML inline frames (also referred to as an “iframe”). Iframes enable the embedding and/or displaying of a first HTML page into a second HTML page. One advantage of using iframes is that, because iframes can be made invisible to the user (and can be sandboxed and isolated from the external main webpage 209), there is minimal to zero impact to the user's navigation experience and/or to the operation of the traffic generating entity.

While some webinjects are injected into as many webpages 209 as possible (and therefore, into every detection webpage 204 associated with the webpage), some software (“webinject originator” 216) may only inject its webinject(s) 212 when a specific website is visited (e.g., online banking websites, social media websites, etc.). To detect this webinject 212, one or more source domains, one or more paths, and/or an HTML structure of the detection webpage 204 is configured to match the webinject targets (i.e., the online banking website, etc.). For example, the webinject 212 may only be injected by the originator 216 if the browser 208 is visiting the site:

webinjecttarget.com

Further, the originator 216 may be using a rule (e.g., a regular expression) to search for the target domain of a webpage while the browser 208 is loading the webpage. In many instances, this rule is not sufficiently specific to the term “webinjecttarget.com”. The uniform resource locator (URL) and/or content of the detection webpage(s) 204 can be configured such that, the detection webpage 204 can “bait” or trigger the webinject 212 to be injected into the detection webpage 204 itself. An example of such an URL of the detection webpage 204 used in an iframe inserted by a traffic generating entity 206 on an external webpage 209 is:

<iframe src=“https://webinjecttarget.com.detectionsystem.com/webinjecttarget.com/login.aspx”>

In step 104, the detection code 202 is executed during and/or after the rendering of the detection webpage 204 in the browser 208, to detect the webinject 212 content on the detection webpage 204 Document Object Model (DOM). The detection code can inspect the rendering of the detection webpage 204 by using JavaScript functions that are triggered on specific webpage rendering events. The webinject content can include one or more Hypertext Markup Language (HTML) components. The detection code inspects the rendering of the detection webpage 204 in the web browser 208. This inspection can be done through the use of a JavaScript function that compares the content of the detection webpage 204 after the content is rendered with the content that were delivered, through monitoring specific JavaScript function calls that are commonly used by webinjects 212 or through using content security policy (CSP) rules that trigger an action on any change to the original delivered detection webpage 204.

In step 106, if detection code 202 detects webinject content in the detection webpage 204, the detection code 202 generates a set of fingerprints based on the webinject content. These fingerprints are generated using an algorithm that selects one or more webinject blocks of code. and normalizes the one or more blocks of code. An example of a webinject block of code is an inline HTML script tag added to the webpage. There may be one or more blocks of code belonging to one or more webinjects. For example, normalization of the blocks include removing parts of the blocks that are specific to the browser instance (such as unique identifiers), normalizing character case, etc. The algorithm then creates a unique identifier of each block's contents that can be smaller than the webinject content itself and that is unique for a particular content. This unique identifier, also referred to as fingerprint in this document, can be calculated using hashing functions or even simpler cyclic redundancy check (CRC) algorithms that produce a unique number for a given input content.

In step 108, code 202 transmits the fingerprints to one or more server(s) 214 where they are stored and/or processed. Additionally, on a small sample of the executions of the detection code 202, the detected webinject content is transmitted to an external server, along with the respective fingerprints. In an exemplary embodiment utilizing CSP, CSP reports are sent by browser 208 to server 214 if a webinject is detected, the fingerprint is then calculated by a method similar to the one described above but on the server 214 and using the contents of the CSP report.

The one or more fingerprints can be used to classify the webinject 212 and/or identify the originator 216 of the webinject 212. Thus, in step 110, server 214 classifies the webinject 212 based on the received fingerprints. The server 214 can classify the detected webinject into a specific category, based on a database that maps each of the fingerprints to details about the webinject 212 and/or originator 216. In some embodiments, method 100 can include generating a database including the fingerprint(s), the name of the origin software, and/or a list of features and/or capabilities of the detected webinject content. For example, features or capabilities can include intercepting communication or changing form contents. This database can be built manually and/or by automated processing of the webinject content blocks that are sent, along with the respective fingerprints, to the server 214 in step 108. Once these samples are received in server 214, they are used to identify the originator 216 of the webinject, by searching for the presence of the same blocks of webinject code in the sandboxed execution of the software and by searching other, open or commercially available data sources.

Computer-Based Implementations

In some examples, some or all of the processing described above can be carried out on a personal computing device, on one or more centralized computing devices, or via cloud-based processing by one or more servers. In some examples, some types of processing occur on one device and other types of processing occur on another device. In some examples, some or all of the data described above can be stored on a personal computing device, in data storage hosted on one or more centralized computing devices, or via cloud-based storage. In some examples, some data are stored in one location and other data are stored in another location. In some examples, quantum computing can be used. In some examples, functional programming languages can be used. In some examples, electrical memory, such as flash-based memory, can be used.

FIG. 3 is a block diagram of an example computer system 300 that may be used in implementing the technology described in this disclosure. General-purpose computers, network appliances, mobile devices, or other electronic systems may also include at least portions of the system 300. The system 300 includes a processor 310, a memory 320, a storage device 330, and an input/output device 340. Each of the components 310, 320, 330, and 340 may be interconnected, for example, using a system bus 350. The processor 310 is capable of processing instructions for execution within the system 300. In some implementations, the processor 310 is a single-threaded processor. In some implementations, the processor 310 is a multi-threaded processor. The processor 310 is capable of processing instructions stored in the memory 320 or on the storage device 330.

The memory 320 stores information within the system 300. In some implementations, the memory 320 is a non-transitory computer-readable medium. In some implementations, the memory 320 is a volatile memory unit. In some implementations, the memory 320 is a non-volatile memory unit.

The storage device 330 is capable of providing mass storage for the system 300. In some implementations, the storage device 330 is a non-transitory computer-readable medium. In various different implementations, the storage device 330 may include, for example, a hard disk device, an optical disk device, a solid-date drive, a flash drive, or some other large capacity storage device. For example, the storage device may store long-term data (e.g., database data, file system data, etc.). The input/output device 340 provides input/output operations for the system 300. In some implementations, the input/output device 340 may include one or more of a network interface devices, e.g., an Ethernet card, a serial communication device, e.g., an RS-232 port, and/or a wireless interface device, e.g., an 802.11 card, a 3G wireless modem, or a 4G wireless modem. In some implementations, the input/output device may include driver devices configured to receive input data and send output data to other input/output devices, e.g., keyboard, printer and display devices 360. In some examples, mobile computing devices, mobile communication devices, and other devices may be used.

In some implementations, at least a portion of the approaches described above may be realized by instructions that upon execution cause one or more processing devices to carry out the processes and functions described above. Such instructions may include, for example, interpreted instructions such as script instructions, or executable code, or other instructions stored in a non-transitory computer readable medium. The storage device 330 may be implemented in a distributed way over a network, such as a server farm or a set of widely distributed servers, or may be implemented in a single computing device.

Although an example processing system has been described in FIG. 3, embodiments of the subject matter, functional operations and processes described in this specification can be implemented in other types of digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible nonvolatile program carrier for execution by, or to control the operation of, data processing apparatus. Alternatively or in addition, the program instructions can be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus. The computer storage medium can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.

The term “system” may encompass all kinds of apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. A processing system may include special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). A processing system may include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.

A computer program (which may also be referred to or described as a program, software, a software application, a module, a software module, a script, or code) can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and it can be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

Computers suitable for the execution of a computer program can include, by way of example, general or special purpose microprocessors or both, or any other kind of central processing unit. Generally, a central processing unit will receive instructions and data from a read-only memory or a random access memory or both. A computer generally includes a central processing unit for performing or executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, e.g., a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name just a few.

Computer readable media suitable for storing computer program instructions and data include all forms of nonvolatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

To provide for interaction with a user, embodiments of the subject matter described in this specification can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user's user device in response to requests received from the web browser.

Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front end component, e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the subject matter described in this specification, or any combination of one or more such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (“LAN”) and a wide area network (“WAN”), e.g., the Internet.

The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

While this specification contains many specific implementation details, these should not be construed as limitations on the scope of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a sub-combination or variation of a sub-combination.

Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

Particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results. As one example, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing may be advantageous. Other steps or stages may be provided, or steps or stages may be eliminated, from the described processes. Accordingly, other implementations are within the scope of the following claims.

Terminology

The phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting.

The term “approximately”, the phrase “approximately equal to”, and other similar phrases, as used in the specification and the claims (e.g., “X has a value of approximately Y” or “X is approximately equal to Y”), should be understood to mean that one value (X) is within a predetermined range of another value (Y). The predetermined range may be plus or minus 20%, 10%, 5%, 3%, 1%, 0.1%, or less than 0.1%, unless otherwise indicated.

The indefinite articles “a” and “an,” as used in the specification and in the claims, unless clearly indicated to the contrary, should be understood to mean “at least one.” The phrase “and/or,” as used in the specification and in the claims, should be understood to mean “either or both” of the elements so conjoined, i.e., elements that are conjunctively present in some cases and disjunctively present in other cases. Multiple elements listed with “and/or” should be construed in the same fashion, i.e., “one or more” of the elements so conjoined. Other elements may optionally be present other than the elements specifically identified by the “and/or” clause, whether related or unrelated to those elements specifically identified. Thus, as a non-limiting example, a reference to “A and/or B”, when used in conjunction with open-ended language such as “comprising” can refer, in one embodiment, to A only (optionally including elements other than B); in another embodiment, to B only (optionally including elements other than A); in yet another embodiment, to both A and B (optionally including other elements); etc.

As used in the specification and in the claims, “or” should be understood to have the same meaning as “and/or” as defined above. For example, when separating items in a list, “or” or “and/or” shall be interpreted as being inclusive, i.e., the inclusion of at least one, but also including more than one, of a number or list of elements, and, optionally, additional unlisted items. Only terms clearly indicated to the contrary, such as “only one of or “exactly one of,” or, when used in the claims, “consisting of,” will refer to the inclusion of exactly one element of a number or list of elements. In general, the term “or” as used shall only be interpreted as indicating exclusive alternatives (i.e. “one or the other but not both”) when preceded by terms of exclusivity, such as “either,” “one of,” “only one of,” or “exactly one of” “Consisting essentially of,” when used in the claims, shall have its ordinary meaning as used in the field of patent law.

As used in the specification and in the claims, the phrase “at least one,” in reference to a list of one or more elements, should be understood to mean at least one element selected from any one or more of the elements in the list of elements, but not necessarily including at least one of each and every element specifically listed within the list of elements and not excluding any combinations of elements in the list of elements. This definition also allows that elements may optionally be present other than the elements specifically identified within the list of elements to which the phrase “at least one” refers, whether related or unrelated to those elements specifically identified. Thus, as a non-limiting example, “at least one of A and B” (or, equivalently, “at least one of A or B,” or, equivalently “at least one of A and/or B”) can refer, in one embodiment, to at least one, optionally including more than one, A, with no B present (and optionally including elements other than B); in another embodiment, to at least one, optionally including more than one, B, with no A present (and optionally including elements other than A); in yet another embodiment, to at least one, optionally including more than one, A, and at least one, optionally including more than one, B (and optionally including other elements); etc.

The use of “including,” “comprising,” “having,” “containing,” “involving,” and variations thereof, is meant to encompass the items listed thereafter and additional items.

Use of ordinal terms such as “first,” “second,” “third,” etc., in the claims to modify a claim element does not by itself connote any priority, precedence, or order of one claim element over another or the temporal order in which acts of a method are performed. Ordinal terms are used merely as labels to distinguish one claim element having a certain name from another element having a same name (but for use of the ordinal term), to distinguish the claim elements. 

What is claimed is:
 1. A computer-implemented method for detection of a webinject, the method comprising: delivering a detection webpage to a web browser, the detection webpage having detection code configured to detect a presence of the webinject in the detection webpage; inspecting, by the detection code, rendering of content of the detection webpage in the browser to detect webinject content in the detection webpage by the webinject, the webinject content including one or more Hypertext Markup Language (HTML) components; if webinject content is detected, generating, by the detection code, a fingerprint for each of the one or more HTML components; transmitting, by the detection code, the one or more fingerprints to an external server; transmitting to the external server, by the detection code, the one or more HTML components of the detected webinject content, the transmission performed by a portion of executions of the detection code; identifying an origin software of the one or more HTML components by at least one of: (i) searching for the one or more HTML components in sandboxed executions of software or (ii) searching through privately- or publicly-available data sources; generating a database of (a) the one or more fingerprints, (b) a name of the origin software, (c) one or more features of the detected webinject content, and/or (d) one or more capabilities of the detected webinject content; and classifying, by the external server, the webinjects based on the one or more known fingerprints.
 2. The method of claim 1, wherein delivering the detection webpage having detection code further comprises: configuring the detection code such that at least one of: (i) a source domain, (ii) a path, or (iii) an HTML structure of the detection webpage is configured to trigger an injection of the webinject content by the webinject.
 3. The method of claim 1, wherein the detection code comprises JavaScript or Content Security Policy (CSP).
 4. The method of claim 1, wherein the detection webpage is inserted into an Hypertext Markup Language (HTML) inline frame.
 5. The method of claim 1, wherein classifying the webinject based on the one or more fingerprints further comprises: determining an origin software of the webinject based on the one or more fingerprints.
 6. The method of claim 1, wherein classifying the webinject based on the one or more fingerprints further comprises: mapping the one or more fingerprints to a feature set of the webinject.
 7. The method of claim 1, wherein the detection webpage is delivered by a traffic generating entity.
 8. The method of claim 7, wherein delivering the detection webpage to the web browser further comprises: embedding, by the traffic generating entity, the detection webpage into an external webpage.
 9. The method of claim 1, wherein delivering the detection webpage to the web browser occurs upon receiving an indication of a user interaction with the content of a webpage, the webpage separate from the detection webpage.
 10. The method of claim 1, wherein the software, of the sandboxed executions of software, comprises at least one of the group consisting of: (i) software associated with the origin software of the webinject; (ii) software related to the origin software; and (iii) the origin software.
 11. A system for detection of webinjects, the system comprising: one or more computer systems programmed to perform operations comprising: delivering a detection webpage to a web browser, the detection webpage having detection code configured to detect a presence of the webinject in the detection webpage; inspecting, by the detection code, rendering of content of the detection webpage in the browser to detect webinject content in the detection webpage by the webinject, the webinject content including one or more Hypertext Markup Language (HTML) components; if webinject content is detected, generating, by the detection code, a fingerprint for each of the one or more HTML components; transmitting, by the detection code, the one or more fingerprints to an external server; transmitting to the external server, by the detection code, the one or more HTML components of the detected webinject content, the transmission performed by a portion of executions of the detection code; identifying an origin software of the one or more HTML components by at least one of: (i) searching for the one or more HTML components in sandboxed executions of software or (ii) searching through privately- or publicly-available data sources; generating a database of (a) the one or more fingerprints, (b) a name of the origin software, (c) one or more features of the detected webinject content, and/or (d) one or more capabilities of the detected webinject content; and classifying, by the external server, the webinjects based on the one or more known fingerprints.
 12. The system of claim 11, wherein delivering the detection webpage having detection code further comprises: configuring the detection code such that at least one of (i) a source domain, (ii) a path, or (iii) an HTML structure of the detection webpage is configured to trigger an injection of the webinject content by the webinject.
 13. The system of claim 11, wherein the detection code comprises JavaScript or Content Security Policy (CSP).
 14. The system of claim 11, wherein the detection webpage is inserted into an Hypertext Markup Language (HTML) inline frame.
 15. The system of claim 11, wherein classifying the webinject based on the one or more fingerprints further comprises: determining an origin software of the webinject based on the one or more fingerprints.
 16. The system of claim 11, wherein classifying the webinject based on the one or more fingerprints further comprises: mapping the one or more fingerprints to a feature set of the webinject.
 17. The system of claim 11, wherein the detection webpage is delivered by a traffic generating entity.
 18. The system of claim 17, wherein delivering the detection webpage to the web browser further comprises: embedding, by the traffic generating entity, the detection webpage into an external webpage.
 19. The system of claim 11, wherein delivering the detection webpage to the web browser occurs upon receiving an indication of a user interaction with the content of a webpage, the webpage separate from the detection webpage.
 20. The system of claim 11, wherein the software, of the sandboxed executions of software, comprises at least one of the group consisting of: (i) software associated with the origin software of the webinject; (ii) software related to the origin software; and (iii) the origin software. 